Skip to main content
Feedback

EDI profile auto-generate options

Updated 

Some EDI profiles contain segments that share a segment ID but belong to different parts of the document. Their meaning depends on context, so the segment ID alone is not enough to read them. Two features handle this case:

note

These settings are common in the X12 856 transaction. Your integration might not need them.

Hierarchical level segments

The HL segments in an 856 start different levels of the document, such as a shipment or an order. The value of HL03 identifies the level. For example, S starts the shipment loop and O starts the order loop. Use additional criteria to tell the profile which HL03 value identifies each loop.

HL01 is a counter for all HL segments in the document. It starts at 1 for the first HL segment and increases by 1 for each one, regardless of the loop. HL02 holds the HL01 value of the parent level, so it defines the hierarchy.

Auto-generate options

The Auto-Generate Option on a data element has these choices:

  • Hierarchical Level 1 - Set on HL01. The profile writes the counter for each HL segment.
  • Hierarchical Level 2 - Set on HL02. The profile writes the reference to the parent level.
  • Hierarchical Level - Summary - Set on CTT01 for an 856 transaction. The profile writes the total number of HL segments in the document.
note

Hierarchical Level A to D are Tradacoms-only. They generate the nested-level numbers for SEQA, SEQB, SEQC and SEQD. A to D map to TL1 to TL4. Each one is a counter that goes up each time that segment is processed, and when a level goes up, all deeper levels reset to 0. Each level can be set on only one element per profile. They don't apply to X12 or EDIFACT.

When you write a document, the profile fills in these values automatically. You do not enter them in a map.

On this Page